package com.lateam2010.register.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
final class Address {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String email;
    
    @Persistent
	private String name;

    public Address(String email, String name) {
		this.email = email;
		this.name = name;
	}
    
    public String getEmail() {
		return email;
	}
    
    public String getName() {
		return name;
	}
}
